package com.ufaud.ais.sys.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.ufaud.ais.pub.entity.BaseEntity;

@Entity
@Table(name = "transfer_record")
public class TransferRecord extends BaseEntity<Long> {

	@Id
	@GeneratedValue
	@Column(name = "record_id")
	private Long recordId;

	@ManyToOne(targetEntity = Employee.class)
	@JoinColumn(name="employee_id")
	private Employee employee;

	private Date date;

	private String description;

	public Long getRecordId() {
		return recordId;
	}

	public void setRecordId(Long recordId) {
		this.recordId = recordId;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	@Transient
	public String getPropertyNameOfId() {
		return "recordId";
	}

}
